package cn.itcast.utils;

/**
 * @author yd
 * @version 1.0
 * @date 2022/3/13 20:54
 */
public class Sleeper {
    private static int seconds;

    public static void sleep(Double seconds) {
        try {
            Thread.sleep((long) (seconds * 1000));
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
    public static void sleep(int seconds) {
        try {
            Thread.sleep( (seconds * 1000));
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
